"use strict";
var Doc_1 = require('../../models/Doc');
var UpdateDocDto = (function () {
    function UpdateDocDto() {
    }
    UpdateDocDto.toDoc = function (docId, body) {
        var doc = new Doc_1.Doc();
        doc._id = docId;
        doc.name = body.name;
        doc.action = body.action;
        doc.description = body.description;
        doc.project = body.projectId;
        doc.params = body.params;
        doc.resps = body.resps;
        doc.group = body.groupId;
        doc.httpMethod = body.httpMethod;
        doc.url = body.url;
        return doc;
    };
    return UpdateDocDto;
}());
exports.UpdateDocDto = UpdateDocDto;
